package com.loan.system.mapper;

import com.loan.common.core.mapper.BaseMapperPlus;
import com.loan.system.domain.IncomeExpendDetailEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface IncomeExpendDetailMapper extends BaseMapperPlus<IncomeExpendDetailMapper, IncomeExpendDetailEntity,IncomeExpendDetailEntity> {

    void updateWhiteById(IncomeExpendDetailEntity entity);

    List<IncomeExpendDetailEntity> selectPageList(@Param("beginTime") String beginTime, @Param("endTime") String endTime,
                                                  @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    int selectPageCount(@Param("beginTime") String beginTime, @Param("endTime") String endTime);

    List<IncomeExpendDetailEntity> selectIncomeExpendList(@Param("companyId") Long companyId, @Param("channel") String channel,
                                                          @Param("beginTime") String beginTime, @Param("endTime") String endTime,
                                                          @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    int selectIncomeExpendCount(@Param("companyId") Long companyId, @Param("channel") String channel,
                                @Param("beginTime") String beginTime, @Param("endTime") String endTime);

    IncomeExpendDetailEntity selectIncomeExpendTotal(@Param("companyId") Long companyId, @Param("channel") String channel, @Param("beginTime") String beginTime, @Param("endTime") String endTime);
}
